package com.baizhiedu.life;

import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

/**
 * ClassName: Product
 * Description:
 * Date: 2022/11/25 PM 1:48:45
 * <p>
 * project: spring5
 * package: com.baizhiedu.life
 * email: 1085844536@qq.com
 * version:
 *
 * @author WangGuojian
 */
@Component
public class Product {

    @PostConstruct
    public void myInit() {
        System.out.println("Product.myInit");
    }

    @PreDestroy
    public void myDestroy() {
        System.out.println("Product.myDestroy");
    }
}
